using System.Reflection;
using AdvancedGod.People.Couples;

namespace AdvancedGod.People
{
  /// <summary>
  /// Represents girl
  /// </summary>
  [Couple(Pair = "Student", Probability = 0.7, ChildType = "Girl")]
  [Couple(Pair = "Botan", Probability = 0.3, ChildType = "SmartGirl")]
  public class Girl : Human
  {
    #region public properties
    /// <summary>
    /// Girl's surname
    /// </summary>
    public string Surname { get; set; }
    #endregion

    #region public methods
    /// <summary>
    /// Constructs girl with fields with values specified
    /// </summary>
    /// <param name="name">girl's name</param>
    public Girl(string name)
      : base(Sex.Female, name)
    {
      Surname = string.Empty;
    }
    #endregion


    #region Human overrided members
    /// <summary>
    /// Returns member info about concrete extended class
    /// </summary>
    /// <returns></returns>
    protected override MemberInfo GetMemberInfo()
    {
      return typeof(Girl);
    }
    #endregion
  }
}